package com.ziqing.apeletnews.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.ziqing.apeletnews.R;
import com.ziqing.apeletnews.base.BaseActivity;
import com.ziqing.apeletnews.baseMvp.BasePresenter;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by YYJ on 2018/4/28.
 */

public class InputInviteCodeActivity extends BaseActivity {


    @BindView(R.id.et_input_code)
    EditText etInputCode;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_input_invite_code);
        ButterKnife.bind(this);
        setTitle("输入邀请码");
        setUpToolbar(R.drawable.icon_back);
        setRightTextView("确定");
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }

    public void setRightTextView(String text) {
        TextView tv_right = findViewById(R.id.tv_right);
        tv_right.setText(text);
        tv_right.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
    }

    @OnClick({R.id.et_input_code})
    public void onViewClicked(View view) {
        switch (view.getId()){
            case R.id.et_input_code:
                etInputCode.setFocusable(true);
                etInputCode.setFocusableInTouchMode(true);
                break;
        }
    }

}
